package com.huang.controller;

import com.huang.service.AdminService;
import com.huang.service.StudentService;
import com.huang.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexContentController {

    @Autowired
    @Qualifier("AdminServiceImpl")
    private AdminService adminService;
    @Autowired
    @Qualifier("TeacherServiceImpl")
    private TeacherService teacherService;
    @Autowired
    @Qualifier("StudentServiceImpl")
    private StudentService studentService;


    //学生主页
    @RequestMapping("/student/toIndexContent")
    public String toStuIndexContent(){
        return "AAAstudentIndexContent";
    }

    //管理员主页
    @RequestMapping("/admin/toIndexContent")
    public String toAdminIndexContent(){
        return "AAAadminIndexContent";
    }

    //教师主页
    @RequestMapping("/teacher/toIndexContent")
    public String toTeaIndexContent(){
        return "AAAteacherIndexContent";
    }

}
